<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>封装自己的push方法(数组)</title>
	<script>
		var arr=[1,2,3,4,5];
		function getPush(arr,num1){
			arr[arr.length]=num1;
			console.log(arr);
		}
		getPush(arr,'hello');
	</script>
</head>
<body>
	
</body>
</html>